package com.rzico.order.controller;

import com.rzico.order.entity.Order;
import com.rzico.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by icssh on 2020/8/5.
 */
@RestController
public class TestTrascationController {

    @Autowired
    public OrderService orderService;

    @GetMapping("/test")
    public void test(){
        Long id = 5L;
        Order order = new Order();
        order.setId(id);
        orderService.updateOne(order);

    }

}
